Y

YouLibs

Remove Touch Overlay

Why Datetimes Need Units - Christopher Ariza | PyData Global 2021

Duration: 24:09Views: 490Likes: 17Date Created: Jan, 2022

Channel: PyData

Category: Science & Technology

Tags: pythonlearn to codeeducationsoftwarepydatalearncodinghow to programjuliaopensourcescientific programmingnumfocuspython 3tutorial

Description: Why Datetimes Need Units: Avoiding a Y2262 Problem & Harnessing the Power of NumPy's datetime64 Speakers: Christopher Ariza Summary This talk will introduce the NumPy datetime64 datatype, describing its features and performance in comparison to Python's date and datetime objects. Practical examples of working with, and converting between, these types will be provided. The usage of datetime64 with time series data in Pandas and StaticFrame will be compared, illustrating the value of using units with datetime64. Description NumPy supports a datetime array datatype called datetime64. Unlike Python's standard library types (datetime and date), datetime64 supports an extensive range of time units, from year to attosecond. This specification of unit permits unambiguous resolution specification, more narrow typing of time information, and taking full advantage of time ranges that fit within the underlying representation (a 64-bit signed integer). This talk will introduce datetime64 arrays and describe their features and performance in comparison to Python's date and datetime types. Practical examples of working with, and converting between, these formats will be provided. As date and time information is particularly useful for labeled time-series data, the usage of datetime64 in Pandas and StaticFrame indices will be examined. Pandas exclusive and coercive use of only a single unit (nanosecond) will be shown to lead to a "Y2262" problem and offer other disadvantages compared to StaticFrame's full support for datetime64 units. The audience for this talk is anyone working with NumPy datetime64 or Pandas DatetimeIndex or Timestamp types, or those wanting to better understand the limitations of Python's date and datetime objects, particularly when used in NumPy arrays. Basic familiarity with these types is helpful but not required. This will be an informative presentation with concise code examples and practical tips for working with these types. Audience members will come away with a firm understanding of the limits and opportunities of these types, relevant for anyone working with time series data. Christopher Ariza's Bio Christopher Ariza is Partner and Chief Technical Officer at Research Affiliates, a global leader in investment strategies and research. With over 20 years of software engineering experience, Chris has developed tools in a variety of domains, most notably algorithmic music composition and computer-aided musicology. Prior to joining Research Affiliates, he was a visiting assistant professor of music at MIT, assistant editor of the Computer Music Journal, and an assistant professor of recording arts and music technology at Towson University. He has a BA in music with honors from Harvard University and an MA and PhD in music theory and composition from New York University. GitHub: github.com/flexatone Twitter: twitter.com/flexatone PyData Global 2021 Website: pydata.org/global2021 LinkedIn: linkedin.com/company/pydata-global Twitter: twitter.com/PyData pydata.org PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R. PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases. 00:00 Welcome! 00:10 Help us add time stamps or captions to this video! See the description for details. Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: github.com/numfocus/YouTubeVideoTimestamps

Swipe Gestures On Overlay